#!/bin/bash
ipfs init
#ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
ipfs config --json Swarm.ConnMgr.HighWater 2000
ipfs config Datastore.StorageMax 6GB
ipfs config --json Datastore.StorageGCWatermark 70
ipfs config Datastore.GCPeriod 10m
ipfs config --json Routing.AcceleratedDHTClient true

exec $@